{template 'common/header'}

<div style="padding:15px;">
  <p>(本次收集订单总数：<span class="redamount">{$total}</span>个)</p>
  <table class="table table-hover">
    <thead class="navbar-inner">
      <tr>
        <th>序号</th>
        <th>预约者真实姓名</th>
        <th>电话</th>
        <th>教师姓名</th>
        <th>家教机构名称</th>
        <th>下单时间</th>
        <th>处理状态</th>
        <th>操作</th>
  </tr>
</thead>
{loop $orders $item}
<tr>
  <td>{$item['id']}</td>
  <td>{$item['truename']}</td>
  <td>{$item['mobile']}</td>
  <td>{$item['tecname']}</td>
  <td>{$item['department']}</td>
  <td>{php echo date('Y-m-d',$item['createtime'])}</td>
  <td>{if $item['remate'] == '0'}待回复{elseif $item['remate'] == '1'}确认{elseif $item['remate'] == '2'}拒绝{elseif $item['remate']=='3'}完成{/if}</td>
  <td>
    <a href="{php echo $this->createWebUrl('detail',array('id' => $item['id']))}">详细</a>
    <a href="{php echo $this->createWebUrl('orders',array('id' => $item['id'],'op' => 'delete'))}">删除</a>
  </td>
</tr>
{/loop}
</table>
</div>

{template 'common/footer'}